package cn.stylefeng.guns.dao.mapper;

import cn.stylefeng.guns.dao.entity.RuleSupplier;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author quspacedraon
 * @since 2024-01-13
 */
public interface RuleSupplierMapper extends BaseMapper<RuleSupplier> {

    int isExist(@Param("supplierIdList") List<String> supplierIdList, @Param("goodsId") String goodsId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    List<RuleSupplier> getAvailableList(@Param("supplierIdList") List<String> supplierIdList, @Param("goodsIdList") List<String> goodsIdList, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

}
